package com.ocean.dao.library;

import com.ocean.entity.library.Book;
import com.ocean.vo.EchartData;
import org.apache.ibatis.annotations.Param;
import org.w3c.dom.stylesheets.LinkStyle;

import java.util.List;

/**
 * Project：SchoolManage
 * Package：com.ocean.dao.library
 * Author:zy
 * Time:2023/3/3
 */

public interface BookDao {

    /**
     * 新增图书
     * @param book
     * @return
     */
    int insert(Book book);

    /**
     * 查询所有图书
     * @return
     */
    List<Book> selectAllByCondition(@Param("name")String name, @Param("author") String author);

    int delete(int id);
    /**
     * 修改*/
    int update(Book book);

    Book selectIdByName(String name);

    int insertBatch(List<Book> list);

    List<Book> selectAll();

    List<EchartData> selectechart();

}
